﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SPublicMount extends IMessageBase
    {
        public var code:int;
        public var bless:int;
        public var advanceNum:int;
        public var state:int;
        public var sharpId:int;
        public var shapeCardStatus:int;
        public var lastAdvanceSuccessDt:Date;
        public var currentGrowthNum:int;
        public var totalGrowthNum:int;
        public var currentTalentNum:int;
        public var totalTalentNum:int;
        public var advanceReturn:int;
        public const _type:int = 84;
        public static var _regist:SPublicMount = new SPublicMount(true);

        public function SPublicMount(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPublicMount();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.code);
            param1.writeInt(this.bless);
            param1.writeInt(this.advanceNum);
            param1.writeShort(this.state);
            param1.writeInt(this.sharpId);
            param1.writeByte(this.shapeCardStatus);
            param1.writeDate(this.lastAdvanceSuccessDt);
            param1.writeInt(this.currentGrowthNum);
            param1.writeInt(this.totalGrowthNum);
            param1.writeInt(this.currentTalentNum);
            param1.writeInt(this.totalTalentNum);
            param1.writeInt(this.advanceReturn);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.code = param1.readInt();
            this.bless = param1.readInt();
            this.advanceNum = param1.readInt();
            this.state = param1.readShort();
            this.sharpId = param1.readInt();
            this.shapeCardStatus = param1.readByte();
            this.lastAdvanceSuccessDt = param1.readDate();
            this.currentGrowthNum = param1.readInt();
            this.totalGrowthNum = param1.readInt();
            this.currentTalentNum = param1.readInt();
            this.totalTalentNum = param1.readInt();
            this.advanceReturn = param1.readInt();
            return;
        }// end function

    }
}
